//
//  ZMJLrcLabel.m
//  Z-QQMusic
//
//  Created by zmj on 15/11/6.
//  Copyright © 2015年 zmj. All rights reserved.
//

#import "ZMJLrcLabel.h"

@implementation ZMJLrcLabel

- (void)setProgress:(CGFloat)progress {
    _progress = progress;
    [self setNeedsDisplay];
}

- (void)drawRect:(CGRect)rect {
    [super drawRect:rect]; // 绘制当前歌词
    // 在区域内画上一个填充的颜色
    CGRect drawRect = CGRectMake(0, 0, self.bounds.size.width * self.progress, self.bounds.size.height);
    [[UIColor greenColor] set];
    UIRectFillUsingBlendMode(drawRect, kCGBlendModeSourceIn);
    
}

@end
